<?php //if ($this->session->userdata('login') == FALSE) { redirect('login'); }?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
	<title>
		<?php echo isset($title) ? $title : ''; ?>
	</title>
	<script type="text/javascript" src="<?php echo base_url() . 'js/jquery/jquery-1.4.2.js'; ?>"></script>
	<script type="text/javascript" src="<?php echo base_url() . 'js/jquery/jquery-ui-1.8.5.custom.js'; ?>"></script>
	<script type="text/javascript" src="<?php echo base_url() . 'js/jquery/jqueryslidemenu.js'; ?>"></script>
	<script type="text/javascript" src="<?php echo base_url() . 'js/jquery/jquery.formatCurrency.js'; ?>"></script>
	<script type="text/javascript" src="<?php echo base_url() . 'application/views/' . $path . '/' . $path .'.js'; ?>"></script>
	
	<style type="text/css">@import url("<?php echo base_url() . 'css/style.css'; ?>");</style>
	<style type="text/css">@import url("<?php echo base_url() . 'css/table.css'; ?>");</style>
	<style type="text/css">@import url("<?php echo base_url() . 'css/jquery/jquery-ui.css'; ?>");</style>
	
	<style>
	.ui-autocomplete { max-height: 200px; overflow-y: auto; }
	/* IE 6 doesn't support max-height we use height instead, but this forces the menu to always be this tall */
	* html .ui-autocomplete { height: 100px; }
	.ui-autocomplete-loading { background: white url('../images/indicator.gif') right center no-repeat; }
	</style>
</head>

<body id="<?php echo isset($title) ? $title : ''; ?>">
<div id="wrapper">
<div id="wrapper_inner">
	<div id="toplinks">
		<div id="toplinks_inner">
			<ul><?php //echo isset($toplink) ? $toplink : ''; ?></ul>
		</div>
	</div>
	<div class="clearer">&nbsp;</div>	
	<div id="header">
		<?php $this->load->view($header); ?>
	</div>
	<div id="navigation">
		<div id="navigation_inner">
			<ul><?php //echo isset($topmenu) ? $topmenu : ''; ?></ul>
		</div>
	</div>
	<div id="main">
		<div class="left" id="content">
			<div id="content_inner">
				<div class="post">
                                    <?
                                        if(isset($message)){
                                            echo"<fieldset><legend>Pesan</legend><font color=red align=center>$message</font></fieldset>";
                                        }

                                    ?>
					<?php $this->load->view($main_view); ?>
				</div>
			</div>
		</div>
		<div class="right" id="sidebar_outer">
			<div id="sidebar">
				<?php echo $listMatakuliah; ?>
			</div>
		</div>
		<div class="clearer">&nbsp;</div>
		<div id="footer">
			<div id="footer_inner">
				<?php $this->load->view($footer); ?>
			</div>
		</div>
	</div>	
</div>
</div>

</body>
</html>
